// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
import router from './router'

//引入store
import store from './store'

//挂载到vue的原型上
/**
 * vue对象上有emit和on方法
 */
Vue.prototype.eventBus =new Vue()

/* eslint-disable no-new */
new Vue({
  el: '#app',
  //配置路由
  router,
  //store,
  components: { App },
  template: '<App/>'
})
